package com.xms.web.framework.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScan.Filter;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

/**
 * <p>
 * SpringRootConfig
 * </p>
 *
 * @author migo
 * @since 2021/9/10
 */
@Configuration
@ComponentScan(basePackages = { "com.xms.*.api.controller","com.xms.web.view.*" }, excludeFilters = {
        @Filter(type = FilterType.ANNOTATION, value = EnableWebMvc.class)})
public class SpringRootConfig {

}
/*@Configuration
@PropertySource("classpath:application.yml")
@ComponentScan(basePackages={"com.xms.*.api.controller","com.xms.web.view.*.controller"})
public class SpringRootConfig {
     *//*
     * 加载properties配置文件
     * @return
     *//*

    @Bean
    public static PropertySourcesPlaceholderConfigurer getPropertySourcesPlaceholderConfigurer(){
        return new PropertySourcesPlaceholderConfigurer();
    }

}*/
